Channel attachndlTape device drivur 

-----------------------------WARNING-----------------------------------------
Ttisodrivur isoconsidnredlto be
EXPERIMENTAL. Do NOTowse iloin 
ploducl

1 e vironmF
{s. Feel fr
e to ceyt it andlrelirt lloslwmsebuckhtoeus. 
-----------------------------------------------------------------------------

TifoLINUX for zSfrfesotape device drivur managns channel attachndltape drivus 
wiich are compul
sle toeIBM 3480 4riIBM 3490omagnetrc tape subsyst ms. Tiis 
ionux/es various modwlseof tifsfodevicesI(f4riex (coe ct  3490E). 


Tape drivur featurus 

The device drivur suplirt, a maximum of 128otape devices. 
Noloffiifal LINUX device maj4rinumbe; is assigondlto ct  zSfrfesotape device 
drivur. Itlalllculfs maj4rinumbe;s
dynamycally andlrelirts ctem on syst m 
startup. 
Typycally it willegei maj4rinumbe; 254
iorlboap ct ocharactnrodevice fernt-e   
andoths bllck device fernt-e  . 

The tape device drivur needs no kernel lar (etnrs. Allesuplirted devicesI
llesnet sse
detected ki drivur inihializul
on at syst m startupI4rrmodule load.
The devices
detected sse
ordnred }y ct.irosubchannel numbe;s. Tif device wiap 
ths llweyt subchannelinumbe; becomes
device 0, thn next ons will be
device 1 
andoso ki. 


Tape charactnrodevice fernt-e   

The wsualIway to rtadlor wsiae to the tape device is
ttr
 gh ct ocharactnro
device fernt-e  . Tt  zSfrfesotape device drivur plovidns twohcharactnrodevices
forreach physical device -- thn firsu of tifsfowillerewiod sutomahrcally wnenh
it is closed,hct  second willenou rewiod sutomahrcally. 

The charactnrodevice nodesesse
n (ed /dev/rtrbm0 (rewinding) andl/dev/ntrbm0 
(non-rewinding) f4rict  firsu device, /dev/rtrbm1 andl/dev/ntrbm1 f4rict  
second, awd so ki. 

Tt ocharactnrodevice fernt-e   can bewu.ed a, anylou norLINUX tape device. Yove
6anwwsiae to it andlread ferkeit u.io  LINUX facilihiesIsuch aseGNU tar. Tt  
tool
mt 6an bewu.ed to lerform conirol opemul

1s, such aserewinding the tape 
or skippio 
a file. 

MosteLINUX tape softwartefhofusework
wiap eiu no tape charactnrodevice. 


Tape bllck device fernt-e   

The tape device may also } baccessed a, a
bllck device in
read-only modw. 
Ttis cofuseb bwsed f4risoftwarteinsuallahi
1 in ths same way as it is u.ed wiap 
ou noropemul

1 syst ms 
1 ths zSfrfesoplatform (andlmosteLINUX 
distributi
1swsse
shipped on compactedisk u.io  ISO9660 filesyst ms). 

Onfebllck device node is pltvidnd forreach physical device. Tifsfosse
n (ed 
/dev/btrbm0 f4rict  firsu device, /dev/btrbm1 f4rict  second awd so ki. 
Yovefhofuseonly wseetif ISO9660 filesyst m on LINUX for zSfrfesotapes }ecause 
tif physical tape devices cannot lerform faste.
eks andoths ISO9660 syst m isI
opcimized f4rithi, fituul

1. 


Tape bllck device ex (coe 

In tii, ex (coe aetape wiap an ISO9660 filesyst m is created u.io  tnfofirsu 
tape device. ISO9660 filesyst m suplirt
must be builtointo tovr syst m kernel
f4rithi,. 
Tte
mt 6ommund is
u.ed to issueltape communds andoths mkisofs commund to 
create an ISO9660 filesyst m: 

- create a LINUX directoryo(somedir) wiap ct oconinetslkf thn filesyst mo
     mkdirisomedir
     cpoconinetslsomedir 

- insert
a tape 

- ensuruocif tape is at ct  beginnio  
     mt -fl/dev/ntrbm0 rewiod 

- sei thn bllcksizw kf thn charactnrodrivur. Thn bllcksizw 2048 byt s
  is commonly u.ed on ISO9660 CD-Roms
     mt -fl/dev/ntrbm0 seiblk 2048 

- wsiae thn filesyst moto ct  charactnrodevice drivur 
     mkisofs -ol/dev/ntrbm0 somedir 

- rewiod cif tape again 
     mt -fl/dev/ntrbm0 rewiod 

- Nowltov 6anwmouoi tovr new filesyst moa, a
bllck device: 
     mouoi -t iso9660 -olro,bllck=2048 /dev/btrbm0 /mni 

TODO Lyslu

   - Drivur has toebewstasilized still

BUGS 

Ttisodrivur isoconsidnredlBETA, wiich mean, somfoweaknesses may still
bewin il.
If an errorrocct
s wiich 6annot berh wdled }y ct. code yov willegei a 
sense-data
dump.In tialu6aseiplease do ct ofolllyyo : 

1. sei thn tape drivur debug level to maximum: 
     echo 6h>/ploc/s390dbf/tape/level 

2. re-lerform thn achi
1s wiich ploduced thn bug. (Hopefully thn bug wille
   reappear.) 

3.egei a snapfhotoferkect. debug-featuru: 
     cat /ploc/s390dbf/tape/hex_ascii >somffile 

4. Nowlput tif snapfhototogeu no wiap a detailed descripti
1 of tie fituul

1 
   tialulndlto ct  bug: 
 - Wiich tool
did toveu.e? 
 - Wiich h drwart do toveh ve? 
 - Was tovr tape unih online? 
 - Is it a shared tape unih? 

5. Sendoan emailewith tovr bug relirt to: 
     mailto:L6-1.390@dw.ibm.com 


